home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dspgv.z / dspgv
Encoding:
Text File  |  2002-10-03  |  5.7 KB  |  199 lines

  1.  
  2.  
  3.  
  4. DDDDSSSSPPPPGGGGVVVV((((3333SSSS))))                                                            DDDDSSSSPPPPGGGGVVVV((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DSPGV - compute all the eigenvalues and, optionally, the eigenvectors of
  10.      a real generalized symmetric-definite eigenproblem, of the form
  11.      A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      SUBROUTINE DSPGV( ITYPE, JOBZ, UPLO, N, AP, BP, W, Z, LDZ, WORK, INFO )
  15.  
  16.          CHARACTER     JOBZ, UPLO
  17.  
  18.          INTEGER       INFO, ITYPE, LDZ, N
  19.  
  20.          DOUBLE        PRECISION AP( * ), BP( * ), W( * ), WORK( * ), Z( LDZ,
  21.                        * )
  22.  
  23. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  24.      These routines are part of the SCSL Scientific Library and can be loaded
  25.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  26.      directs the linker to use the multi-processor version of the library.
  27.  
  28.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  29.      4 bytes (32 bits). Another version of SCSL is available in which integers
  30.      are 8 bytes (64 bits).  This version allows the user access to larger
  31.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  32.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  33.      only one of the two versions; 4-byte integer and 8-byte integer library
  34.      calls cannot be mixed.
  35.  
  36. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  37.      DSPGV computes all the eigenvalues and, optionally, the eigenvectors of a
  38.      real generalized symmetric-definite eigenproblem, of the form
  39.      A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x. Here A and B are
  40.      assumed to be symmetric, stored in packed format, and B is also positive
  41.      definite.
  42.  
  43.  
  44. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  45.      ITYPE   (input) INTEGER
  46.              Specifies the problem type to be solved:
  47.              = 1:  A*x = (lambda)*B*x
  48.              = 2:  A*B*x = (lambda)*x
  49.              = 3:  B*A*x = (lambda)*x
  50.  
  51.      JOBZ    (input) CHARACTER*1
  52.              = 'N':  Compute eigenvalues only;
  53.              = 'V':  Compute eigenvalues and eigenvectors.
  54.  
  55.      UPLO    (input) CHARACTER*1
  56.              = 'U':  Upper triangles of A and B are stored;
  57.              = 'L':  Lower triangles of A and B are stored.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDSSSSPPPPGGGGVVVV((((3333SSSS))))                                                            DDDDSSSSPPPPGGGGVVVV((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      N       (input) INTEGER
  75.              The order of the matrices A and B.  N >= 0.
  76.  
  77.      AP      (input/output) DOUBLE PRECISION array, dimension
  78.              (N*(N+1)/2) On entry, the upper or lower triangle of the
  79.              symmetric matrix A, packed columnwise in a linear array.  The j-
  80.              th column of A is stored in the array AP as follows:  if UPLO =
  81.              'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i
  82.              + (j-1)*(2*n-j)/2) = A(i,j) for j<=i<=n.
  83.  
  84.              On exit, the contents of AP are destroyed.
  85.  
  86.      BP      (input/output) DOUBLE PRECISION array, dimension (N*(N+1)/2)
  87.              On entry, the upper or lower triangle of the symmetric matrix B,
  88.              packed columnwise in a linear array.  The j-th column of B is
  89.              stored in the array BP as follows:  if UPLO = 'U', BP(i + (j-
  90.              1)*j/2) = B(i,j) for 1<=i<=j; if UPLO = 'L', BP(i + (j-1)*(2*n-
  91.              j)/2) = B(i,j) for j<=i<=n.
  92.  
  93.              On exit, the triangular factor U or L from the Cholesky
  94.              factorization B = U**T*U or B = L*L**T, in the same storage
  95.              format as B.
  96.  
  97.      W       (output) DOUBLE PRECISION array, dimension (N)
  98.              If INFO = 0, the eigenvalues in ascending order.
  99.  
  100.      Z       (output) DOUBLE PRECISION array, dimension (LDZ, N)
  101.              If JOBZ = 'V', then if INFO = 0, Z contains the matrix Z of
  102.              eigenvectors.  The eigenvectors are normalized as follows:  if
  103.              ITYPE = 1 or 2, Z**T*B*Z = I; if ITYPE = 3, Z**T*inv(B)*Z = I.
  104.              If JOBZ = 'N', then Z is not referenced.
  105.  
  106.      LDZ     (input) INTEGER
  107.              The leading dimension of the array Z.  LDZ >= 1, and if JOBZ =
  108.              'V', LDZ >= max(1,N).
  109.  
  110.      WORK    (workspace) DOUBLE PRECISION array, dimension (3*N)
  111.  
  112.      INFO    (output) INTEGER
  113.              = 0:  successful exit
  114.              < 0:  if INFO = -i, the i-th argument had an illegal value
  115.              > 0:  DPPTRF or DSPEV returned an error code:
  116.              <= N:  if INFO = i, DSPEV failed to converge; i off-diagonal
  117.              elements of an intermediate tridiagonal form did not converge to
  118.              zero.  > N:   if INFO = n + i, for 1 <= i <= n, then the leading
  119.              minor of order i of B is not positive definite.  The
  120.              factorization of B could not be completed and no eigenvalues or
  121.              eigenvectors were computed.
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DDDDSSSSPPPPGGGGVVVV((((3333SSSS))))                                                            DDDDSSSSPPPPGGGGVVVV((((3333SSSS))))
  137.  
  138.  
  139.  
  140. SEE ALSO
  141.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  142.  
  143.      This man page is available only online.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.